
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type StoreServiceLogRequest struct {

	MerId string `json:"mer_id" form:"mer_id"`

	Msn string `json:"msn" form:"msn"`

	Uid string `json:"uid" form:"uid"`

	ToUid string `json:"to_uid" form:"to_uid"`

	IsTourist string `json:"is_tourist" form:"is_tourist"`

	TimeNode string `json:"time_node" form:"time_node"`

	AddTime string `json:"add_time" form:"add_time"`

	Type string `json:"type" form:"type"`

	Remind string `json:"remind" form:"remind"`

	MsnType string `json:"msn_type" form:"msn_type"`

}

func (r *StoreServiceLogRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *StoreServiceLogRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"mer_id": "required",

		"msn": "required",

		"uid": "required",

		"to_uid": "required",

		"is_tourist": "required",

		"time_node": "required",

		"add_time": "required",

		"type": "required",

		"remind": "required",

		"msn_type": "required",

	}
}

func (r *StoreServiceLogRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreServiceLogRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreServiceLogRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
